package com.niiwoo.civet.account.enums;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 企业开户存管审核状态枚举
 * @author TomXue
 * @date 2018-04-24
 */
@AllArgsConstructor
@Getter
public enum OpenCompanyAccountOrderAuditStatusEnum {
    INIT((byte)0,"初始化"),
    AUDIT_ING((byte)1,"审核中"),
    AUDIT_PASS ((byte)2,"审核通过"),
    AUDIT_BACK((byte)3,"审核退回"),
    AUDIT_REFUSE((byte)4,"审核拒绝"),
    BANK_ERROR((byte)5,"存管处理失败");

    private Byte status;
    private String desc;

    public static OpenCompanyAccountOrderAuditStatusEnum enumOf(Byte value) {
        for (OpenCompanyAccountOrderAuditStatusEnum openCompanyAccountOrderAuditStatusEnum : values()) {
            if (openCompanyAccountOrderAuditStatusEnum.status.equals(value)) {
                return openCompanyAccountOrderAuditStatusEnum;
            }
        }
        throw new NoSuchEnumValueException("OpenCompanyAccountOrderAuditStatusEnum:" + value);
    }
}
